package com.wbcs.system.dataimport.interceptor;

import java.sql.Connection;
import java.util.List;

import com.wbcs.exception.WbcsDataImportException;
import com.wbcs.system.dataimport.DataImportItem;

public interface IDataImportInterceptor
{
    public boolean doImportStart(DataImportItem dataImportItem)throws Exception;

    public boolean beforeImportRow(Connection conn,DataImportItem dataImportItem,
            List<String> lstColNames,List lstColValues)throws Exception;

    public void afterImportRow(Connection conn,DataImportItem dataImportItem,List<String> lstColNames,
            List lstColValues)throws Exception;

    public void doImportEnd(int statuscode,DataImportItem dataImportItem,Exception e)throws Exception;
}
